package com.assignment.database;

import java.io.File;
import java.net.URL;



import com.assignment.gui.EditItemScreen;
import com.assignment.gui.LoginScreen;
import com.assignment.main.Item;
import com.assignment.main.Supplier;



public class Core {

	
	public static void main(String args[]) {
		
		Database.initialise("root", "", "localhost/prog");
		Database.connect();
		new LoginScreen().setVisible(true);
		
		//new EditItemScreen().setVisible(true);
		
		//File file = new File(Core.class.getClassLoader().getResource("../src/test.png").toString());
		//Database.insertImage("0", file);
		//for (Item s : DatabaseExtension.getItems(0))
			//System.out.println(s.getImage());
		/*
		Item[] items = DatabaseExtension.getItems();
		
		
		for (Item i: items) {
			String s = i.getName();
			s = s.replaceAll("\t", "");
			System.out.println(s);
		}
		*/
	}
}
